{template "content","header"}
<div class="mainBox3">
<div class="main" >
  <div class="col-left">
    <div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> &gt; </span>{catpos($catid)} 正文</div>
    <div id="Article">
      <h1>{$title}<br />
        <span>{$inputtime}&nbsp;&nbsp;&nbsp; 点击：</span><span id="hits"></span></h1>
      {if $description}
      {/if}
      <div class="content"> {if $allow_visitor==1}
        {$content} 
        {if $fujian} <br />
        <p>附件:
          {loop $fujian $r}
          {$r}
          {/loop} </p>
        {/if} 
        <!--内容关联投票--> 
        {if $voteid}<script language="javascript" src="{APP_PATH}index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}&type=2"></script>{/if}
        
        {else}
        <CENTER>
          <a href="{APP_PATH}index.php?m=content&c=readpoint&allow_visitor={$allow_visitor}"><font color="red">阅读此信息需要您支付 <B><I>{$readpoint} {if $paytype}元{else}点{/if}</I></B>，点击这里支付</font></a>
        </CENTER>
        {/if} </div>
      {if $titles}
      <fieldset>
        <legend class="f14">本文导航</legend>
        <ul class="list blue row-2">
          {loop $titles $r}
          <li>{$n}、<a href="{$r[url]}">{$r[title]}</a></li>
          {/loop}
        </ul>
      </fieldset>
      {/if}
      <div id="pages" class="text-c">{$pages}</div>
      
      <p class="f14"> <strong>上一篇：</strong><a href="{$previous_page[url]}">{$previous_page[title]}</a><br />
        <strong>下一篇：</strong><a href="{$next_page[url]}">{$next_page[title]}</a> </p>
      <div class="bk15"></div>
    </div>
    <div class="bk10"></div>
  </div>
  <div class="col-auto">
    <div class="box">
      <h5 class="title-2">{$CATEGORYS[$CAT[parentid]][catname]}</h5>
      {pc:content action="category" catid="$CATEGORYS[$catid][parentid]" num="12" siteid="$siteid" order="listorder ASC"}
      <ul class="PageNav">
        {loop $data $r}
        <li><a href="{$r[url]}">{$r[catname]}</a></li>
        {/loop}
        <img src="{IMG_PATH}default/pageSideBg.png" />
      </ul>
      {/pc} </div>
    <div class="bk10"></div>
  </div>
</div>
</div>
<script type="text/javascript">
<!--
	function show_ajax(obj) {
		var keywords = $(obj).text();
		var offset = $(obj).offset();
		var jsonitem = '';
		$.getJSON("{APP_PATH}index.php?m=content&c=index&a=json_list&type=keyword&modelid={$modelid}&id={$id}&keywords="+encodeURIComponent(keywords),
				function(data){
				var j = 1;
				var string = "<div class='point key-float'><div style='position:relative'><div class='arro'></div>";
				string += "<a href='JavaScript:;' onclick='$(this).parent().parent().remove();' hidefocus='true' class='close'><span>关闭</span></a><div class='contents f12'>";
				if(data!=0) {
				  $.each(data, function(i,item){
					j = i+1;
					jsonitem += "<a href='"+item.url+"' target='_blank'>"+j+"、"+item.title+"</a><BR>";
					
				  });
					string += jsonitem;
				} else {
					string += '没有找到相关的信息！';
				}
					string += "</div><span class='o1'></span><span class='o2'></span><span class='o3'></span><span class='o4'></span></div></div>";		
					$(obj).after(string);
					$('.key-float').mouseover(
						function (){
							$(this).siblings().css({"z-index":0})
							$(this).css({"z-index":1001});
						}
					)
					$(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12});
				});
	}

	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}

$(function(){
  $('#Article .content img').LoadImage(true, 660, 660,'{IMG_PATH}s_nopic.gif');    
})
//-->
</script> 
<script language="JavaScript" type="text/javascript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script> 
{template "content","footer"}